<?php

/*

Clubs (club.php)

*/

$rank_check = 1;
$page_title = "Clubs";
include "header.inc.php";

$getclub = mysql_query("SELECT * FROM clubs2");
while ($findclubs = mysql_fetch_array($getclub))
{
	$num_members = mysql_num_rows(mysql_query("SELECT id FROM club_members2 WHERE club = '$findclubs[id]'"));

	mysql_query("UPDATE clubs2 SET members = '$num_members' WHERE id = '$findclubs[id]'");
	$x++;

}

print $x;
?>